import http from "@/utils/request";

//产品 查询
export const getVipProduct = () =>
  http.get("/product/get_product", {
    params: {
      category_id: "20210827165510715",
    },
  });

//订单 创建
export const createPreorder = (product_id, quantity) =>
  http.post("/order/pre_order", {
    product_id,
    quantity,
  });

//订单 状态
export const queryOrderStatus = (order_id) =>
  http.get("/order/query_order_status", {
    params: {
      order_id,
    },
  });

//所有订单 获取
export const getAllOrder = (order_id) =>
  http.post("/order/get_order", { order_id });

//支付 开始
export const startPay = (order_id) => http.post("/pay/payment", { order_id });

//删除订单
export const deleteOrder = (order_id) =>
  http.get("/order/del_order", {
    params: {
      order_id,
    },
  });

//�
